<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <div class="app">
    <div class="todo-input">
      <input type="text" placeholder="请输入代办事项" />
      <button>增加</button>
    </div>
    <div class="todo-list"></div>
  </div>
  <script src="./src/app.js"></script>
  <script src="./src/index.js"></script>
  <script>
    function replaceTpl(template, obj) {
      return template.replace(/\{\{\s*(\S+)\s*\}\}/g, (node, k) => {
        return obj[k];
      });
    }
  </script>
</body>

</html>